<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

// 输出jsonString
function echoJson($arr) {
    print_r(json_encode($arr));
}

include_once $_SERVER['DOCUMENT_ROOT'] . '/class/_core.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/class/weiMiSms.php';

$weiMiSms = new weiMiSms();

$ret = $weiMiSms->sendSms($_REQUEST['phones'], urldecode($_REQUEST['cont']));

echoJson($ret);